<template>
  <div>学生端菜单

    {{ testData }}
  </div>

</template>

<script>
import { stuTestGet } from "@/api/student/test";

export default {
  name: "test",
  data() {
    return {testData: ""}
  },
  created() {
   this.getTestData()
  },
  methods: {
    /** 页面加载时发送请求，返回结果放入testData渲染到页面 */
    getTestData() {
      stuTestGet().then(response => {
        console.log("成功")
        this.testData = response.data;
      })
    }
  }
}
</script>


<style scoped>

</style>
